import dayjs from 'dayjs';
import { downLoad, request } from '../../../request';
export function findAllDeliveryOrderNo(params: any) {
  return request({
    url: `/rcerp/ShipReport/findAll`,
    method: 'get',
    params
  });
}
export function findDetail(params: any) {
  return request({
    url: `/rcerp/ShipReport/findDataDetail?id=${params}`,
    method: 'get'
  });
}
export function exportFinishedGoodsDelivery(ids: string) {
  return downLoad({
    url: `/rcerp/ShipReport/export?ids=${ids}`,
    method: 'get',
    fileName: `成品仓出货导出${dayjs().format('YYYY-MM-DD HH:mm:ss')}.xlsx`
  });
}
export function findAllDeliveryOrderNos(params: any) {
  return request({
    url: `/qms/ShipReport/findAll`,
    method: 'get',
    params
  });
}
export function exportFinishedGoodsDeliverys(ids: string) {
  return downLoad({
    url: `/qms/ShipReport/exportExcel?ids=${ids}`,
    method: 'get',
    fileName: `二维码信息导出${dayjs().format('YYYY-MM-DD HH:mm:ss')}.xlsx`
  });
}
